/**
 *
 */
package com.firmye.codegenerator.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author Firmye
 * @Date 2017年12月31日 下午2:55:05
 * @Description
 */
@ToString
@Getter
@Setter
public class Method {

    private List<String> annotations;
    private String property;
    private String returnTypeName;
    private String methodName;
    private List<Field> parameters;
    private String statement;

    public void addAnno(String str) {
        annotations.add(str);
    }

    public void addParam(Field field) {
        parameters.add(field);
    }

    public Method() {
        annotations = new ArrayList();
        parameters = new ArrayList();
    }

}
